<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      html,
      body {
        height: 100%;
      }
      body {
        perspective: 2000px;
      }
      section {
        position: fixed;
        width: 200px;
        height: 300px;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: auto;
        transform-style: preserve-3d;
        /* transform: rotateX(-87deg); */

        transition: 10s;
      }
      div {
        width: 200px;
        height: 300px;
        position: absolute;
        top: 0;
        left: 0;
      }
      img {
        width: 100%;
        height: 100%;
      }
      div:nth-child(1) {
        transform: translateZ(500px);
      }
      div:nth-child(2) {
        transform: rotateY(36deg) translateZ(500px);
      }
      div:nth-child(3) {
        transform: rotateY(72deg) translateZ(500px);
      }
      div:nth-child(4) {
        transform: rotateY(108deg) translateZ(500px);
      }
      div:nth-child(5) {
        transform: rotateY(144deg) translateZ(500px);
      }
      div:nth-child(6) {
        transform: rotateY(180deg) translateZ(500px);
      }
      div:nth-child(7) {
        transform: rotateY(216deg) translateZ(500px);
      }
      div:nth-child(8) {
        transform: rotateY(252deg) translateZ(500px);
      }
      div:nth-child(9) {
        transform: rotateY(288deg) translateZ(500px);
      }
      div:nth-child(10) {
        transform: rotateY(324deg) translateZ(500px);
      }
      section:hover {
        transform: rotateY(1080deg);
      }
    </style>
  </head>
  <body>
    <section>
      <div>
        <img src="./images/pic1.jpg" alt="" />
      </div>
      <div>
        <img src="./images/pic2.png" alt="" />
      </div>
      <div>
        <img src="./images/pic3.png" alt="" />
      </div>
      <div>
        <img src="./images/pic4.png" alt="" />
      </div>
      <div>
        <img src="./images/pic5.jpg" alt="" />
      </div>
      <div>
        <img src="./images/pic6.png" alt="" />
      </div>
      <div>
        <img src="./images/pic7.png" alt="" />
      </div>
      <div>
        <img src="./images/pic8.png" alt="" />
      </div>
      <div>
        <img src="./images/pic9.png" alt="" />
      </div>
      <div>
        <img src="./images/pic10.png" alt="" />
      </div>
    </section>
  </body>
</html>
